﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ProjectManagement.Domain.Entities;
using ProjectManagement.Domain.Services;
using ProjectManagement.Web.Infrastructure;

namespace ProjectManagement.Web.Controllers
{
	[Permission(Roles = "系统管理员")]
    public class PermissionManageController : Controller
    {
        //
        // GET: /PermissionManage/
		private ControllerActionService _controllerActionService;
		public PermissionManageController(ControllerActionService conActionService)
		{
			_controllerActionService = conActionService;
		}
		public ActionResult PermissionList()
        {
			var roles = _controllerActionService.QueryAllConAction();
			var mainMenu = roles.Where(c => c.MainMenu == true).ToList();
            return View(mainMenu);
        }

    }
}
